﻿using FluentDml.Tests.TestClasses;
using FluentNHibernate.Mapping;

namespace FluentDml.Tests
{
    public class PersonMap : ClassMap<Person>
    {
        public PersonMap()
        {
            Id(x => x.Id);
            Map(x => x.Age);
            Map(x => x.FirstName);
            Map(x => x.LastName);
            References(x => x.Address).Cascade.All(); //just to test the joins
        }
    }
}